﻿/***********************************************************************
 * <copyright file="OpeningAccountEntryEntity.cs" company="BUCA JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   ThangND
 * Email:    thangnd@buca.vn
 * Website:
 * Create Date: 24 April 2014
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System;
using System.Collections.Generic;

namespace BusinessObjects.BussinessVoucher
{
    /// <summary>
    /// 
    /// </summary>
    public class OpeningAccountEntry : BusinessObject
    {
        public int UnitId { get; set; } 
        /// <summary>
        /// Gets or sets the reference identifier.
        /// </summary>
        /// <value>
        /// The reference identifier.
        /// </value>
        public int RefId { get; set; }

        /// <summary>
        /// Gets or sets the reference type identifier.
        /// </summary>
        /// <value>
        /// The reference type identifier.
        /// </value>
        public int RefTypeId { get; set; }

        /// <summary>
        /// Gets or sets the reference no.
        /// </summary>
        /// <value>
        /// The reference no.
        /// </value>
        public string RefNo { get; set; }

        /// <summary>
        /// Gets or sets the posted date.
        /// </summary>
        /// <value>
        /// The posted date.
        /// </value>
        public DateTime RefDate { get; set; } 

        /// <summary>
        /// Gets or sets the account code.
        /// </summary>
        /// <value>
        /// The account code.
        /// </value>
        public string AccountCode { get; set; }

        ///// <summary>
        ///// Gets or sets the name of the account.
        ///// </summary>
        ///// <value>
        ///// The name of the account.
        ///// </value>
        //public string AccountName { get; set; }

        ///// <summary>
        ///// Gets or sets the account identifier.
        ///// </summary>
        ///// <value>
        ///// The account identifier.
        ///// </value>
        //public int? AccountId { get; set; }

        ///// <summary>
        ///// Gets or sets the parent identifier.
        ///// </summary>
        ///// <value>
        ///// The parent identifier.
        ///// </value>
        //public int? ParentId { get; set; }


        /// <summary>
        /// Gets or sets the total debit amount oc.
        /// </summary>
        /// <value>
        /// The total debit amount oc.
        /// </value>
        public decimal TotalDebitAmountOC { get; set; }

        /// <summary>
        /// Gets or sets the total credit amount oc.
        /// </summary>
        /// <value>
        /// The total credit amount oc.
        /// </value>
        public decimal TotalCreditAmountOC { get; set; }

 

        /// <summary>
        /// Gets or sets the opening account entry details.
        /// </summary>
        /// <value>
        /// The opening account entry details.
        /// </value>
        public IList<OpeningAccountEntryDetail> OpeningAccountEntryDetails { get; set; }
    }
}